package com.zdzx.model.service.content.vo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdzx.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "文章", description = "文章")
@TableName("content_article")
public class Article  extends BaseEntity implements Serializable{


	private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "标题", name = "title")
	private String title;
	@ApiModelProperty(value = "标题图片", name = "titleImage")
	private String titleImage;
	@ApiModelProperty(value = "分类", name = "type")
	private String type;
	@ApiModelProperty(value = "标准", name = "standardType")
	private String standardType;
	@ApiModelProperty(value = "法律法规标准", name = "flfgType")
	private String flfgType;
	@ApiModelProperty(value = "地方类型", name = "dfxfgType")
	private String dfxfgType;
	@ApiModelProperty(value = "规范性文件类型", name = "gfxwjfType")
	private String gfxwjfType;
	@ApiModelProperty(value = "展示类型", name = "showType")
	private String showType;
	@ApiModelProperty(value = "描述", name = "desc")
	@TableField("`desc`")
	private String desc;
	@ApiModelProperty(value = "内容", name = "content")
	private String content;
	@ApiModelProperty(value = "作者", name = "author")
	private String author;
	@ApiModelProperty(value = "浏览量", name = "views")
	private Integer views;
	@ApiModelProperty(value = "1 免费 0收费", name = "free")
	private String free;
	@ApiModelProperty(value = "租户Id", name = "tenantId")
	private String tenantId;
	private String isShow;
	
/*	public void setTitleImage(String titleImage,boolean flag) {
		if(!StringUtils.isEmpty(titleImage)&&!titleImage.contains(SystemConfig.ossIp)&&flag)
		this.titleImage = SystemConfig.ossIp+titleImage;
		else
		this.titleImage=titleImage;
	}
	public void setTitleImage(String titleImage) {
		if(!StringUtils.isEmpty(titleImage)&&!titleImage.contains(SystemConfig.ossIp))
		this.titleImage = SystemConfig.ossIp+titleImage;
		else
		this.titleImage=titleImage;
	}
	*/
	

}
